/*
 * @Author: 许警 1137847433@qq.com
 * @Date: 2025-05-12 13:07:30
 * @LastEditors: 许警 1137847433@qq.com
 * @LastEditTime: 2025-07-23 15:19:59
 * @FilePath: /nurse-deer-nurse-app/vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const path = require('path')
module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://121.41.27.119:5002', //生产环境
        // target: "http://192.168.1.32:5002", //测试服务器
        // target: "https://www.hushixiaolu.com/nurse", //测试服务器
        // target: 'http://192.168.1.47:5002',
        // target: "http://192.168.1.47:5002", //测试服务器
        // target:'http://1.94.150.110:5002', //测试服务器
        // target: 'https://hushixiaolu.com/nurse',
        changeOrigin: true,
        pathRewrite: {
          // 拦截所有的devApi替换为后面的内容现在是空的 ,后面写成aaa的时候地址bian
          '^/api': ''
        }
      }
    }
  }
}
